package com.zyh.service.impl;

import com.zyh.entity.User;
import com.zyh.mapper.UserMapper;
import com.zyh.service.UserService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User selectByUsernameAndPassword(String username,String password) {
        return userMapper.selectByUsernameAndPassword(username, password);
    }

    @Override
    public void insert(User user) {
        userMapper.insert(user);
    }
}
